<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/4/27 0027
 * Time: 10:49
 */

namespace app\api\model;

use think\Db;

class Banner extends BaseModel
{
    protected $hidden = ['delete_time','update_time'];
    public function items()
    {
        return $this->hasMany('BannerItem','banner_id','id');
    }
    
    public static function getBannerById()
    {
        $res = Db::query('select * from banner where id = 1');
        return $res;
    }
}